package com.swxy.club.dto.bo;



import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;


/**
 * @author 易
 */

@Data
@ApiModel(description = "用户添加请求体")
public class UserBo {

    @ApiModelProperty(value = "用户密码", required = true, example = "12345678")
    @NotNull(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "邮箱", required = true, example = "1234568qq.com")
    @NotNull(message = "邮箱不能为空")
    private String email;

    @ApiModelProperty(value = "手机号", required = true, example = "12345678901")
//    @NotNull(message = "密码不能为空")
    private String phone;

    @ApiModelProperty(value = "真实姓名", required = true, example = "小易")
//    @NotNull(message = "姓名不能为空")
    private String realName;

    @ApiModelProperty(value = "性别", required = true, example = "MALE")
//    @NotNull(message = "性别不能为空")
    private String gender;

    @ApiModelProperty(value = "头像", required = true, example = "https://www.baidu.com")
    private String avatar;

    @ApiModelProperty(value = "角色", required = true, example = "2")
    private String roleId;

}
